import request from '/@/utils/request'
import {prefix} from '/@/api/oa'

export function getStaffTechnicalTitles(params: object) {
    return request({
        url: prefix + '/staffTechnicalTitle/getStaffTechnicalTitles',
        method: 'get',
        params
    })
}

export function createTechnicalTitle(data: object) {
    return request({
        url: prefix + '/staffTechnicalTitle/create',
        method: 'post',
        data
    })
}

export function editTechnicalTitle(data: object) {
    return request({
        url: prefix + '/staffTechnicalTitle/edit',
        method: 'post',
        data
    })
}

export function removeTechnicalTitle(data: object) {
    return request({
        url: prefix + '/staffTechnicalTitle/delete',
        method: 'post',
        data
    })
}